﻿<%@ Page Language="C#" MasterPageFile="~masterurl/custom.master" AutoEventWireup="true"
  Inherits="Kiiro.SiteDefinition.ApplicationPages.Smart404, Kiiro.SiteDefinition, Version=1.2.0.7, Culture=neutral, PublicKeyToken=5b2f4277f61b7816" MaintainScrollPositionOnPostback="true" %>

<asp:Content ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
  404 - Page Not Found
</asp:Content>
<asp:Content ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
  <style type="text/css">
    .ms-WPBorder
    {
      border: none;
    }
    .smart404
    {
    }
    .smart404 h2
    {
      padding-left: 10px;
    }
    .smart404 h4
    {
      padding-left: 10px;
    }
    .smart404Notice
    {
      padding: 10px;
      padding-right: 0px;
      font-size: 120%;
    }
    .smart404Return
    {
      padding: 15px;
      padding-left: 10px;
      font-size: 110%;
      font-weight: bold;
    }
  </style>
</asp:Content>
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
  <div class="actionbar">
    <div class="wrap-has-tabs">
      <p class="left">
        404 - Page Not Found
      </p>
    </div>
  </div>
  <div class="body-pad">
    <div class="body">
      <div class="wrap">
        <div class="smart404">
          <h2>
            The page you requested could not be found.</h2>
          <% if ( !string.IsNullOrEmpty ( Request.Params [ "k" ] ) && !string.IsNullOrEmpty ( Request.Params [ "oldUrl" ] ) )
             { %>
          <h2>
            <% =Request.Params [ "k" ]%>
            could not be found at
            <% =Request.Params [ "oldUrl" ]%>.</h2>
          <% } %>
          <div class="smart404Notice">
            We apologize, but the page you requested is unavailable. It may be temporarily offline
            due to maintenance, or it may not exist.
          </div>
          <div class="smart404Return">
            <% string href = "javascript:history.go(-2)";
               if ( Request.UrlReferrer != null )
                 href = string.Format ( "javascript:window.location.href('{0}')", Request.UrlReferrer.ToString ( ) ); %>
            <a href="javascript:" onclick="<%= href %>">Return to Previous Page</a>
          </div>
        </div>
      </div>
    </div>
  </div>
</asp:Content>
